import Vue from "vue";
import {
  Button,
  Swipe,
  SwipeItem,
  List,
  PullRefresh,
  Lazyload,
  IndexBar,
  IndexAnchor,
  Cell,
  Toast,
  // Icon,
} from "vant";

Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Button);
Vue.use(List);
Vue.use(PullRefresh);
Vue.use(IndexBar);
Vue.use(IndexAnchor);
Vue.use(Cell);
Vue.use(Toast);
// Vue.use(Icon);

const loadimage = require("@assets/logo.png");

console.log("123", loadimage);
// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  // preload: 1.3,
  loading: loadimage,
});
